<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>兑换类目</a></li>
        <li><a href="{:url('AdminPoints/goods_add')}">添加</a></li>
    </ul>

    <!--<form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">-->

    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="50">ID</th>
            <th>名称</th>
            <th>描述</th>
            <th>类别</th>
            <th>分值</th>
            <th>状态</th>
            <th width="200">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="vo">
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.desc}</td>
                <td>{$vo.type==0?'实物':'驾照分'}</td>
                <td>{$vo.point}</td>
                <td>{$status[$vo.status]}</td>
                <td>
                    <a class="btn btn-xs btn-primary" href="{:url('AdminPoints/goods_add',['id'=>$vo.id])}">编辑</a>
                    <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminPoints/goods_del',['id'=>$vo.id])}">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <ul class="pagination">{$page|default=''}</ul>
    <!--</form>-->
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'expanded'
            });
        });
    });

</script>
</body>
</html>